package com.zmn.plat.common.dictionary;


/**
 * 描述: 验收项目类型
 *
 * @author fengxuecai
 * @since  2021/11/24 16:10
 */
public enum BaseAcceptProjectTypeEnum {
    /**
     * values
     */
    ENGINEER_ACCEPT(1, "工程师验收"),
    USER_ACCEPT(2, "用户验收");

    private final Integer code;

    private final String name;

    BaseAcceptProjectTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static BaseAcceptProjectTypeEnum of(Integer code) {
        switch (code) {
            case 2:
                return USER_ACCEPT;
            default:
                return ENGINEER_ACCEPT;
        }
    }
}
